<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			let name = '张三';
			let age = 20;

			/* const stu = {
				name: name,
				age: age,
				study: function() {
					console.log("学习");
				}
			} */

			const stu = {
				name,
				age,
				study() {
					console.log("学习");
				}
			}

			console.log(stu.name);
			stu.study();
		</script>
	</body>
</html>
